
@echo off 
set top_dir=%cd%
cd ..\..\jdk1.8.0_60
set root_dir=%cd%
::=======java  JAVA_HOME   D:\platform\jdk1.8.0_60=========
@set JAVA_HOME=
@set JAVA_HOME=%root_dir%
@set PATH=%JAVA_HOME%\bin;%PATH%
@set PATH=%JAVA_HOME%\lib;%PATH%
@set C_INCLUDE_PATH=%JAVA_HOME%\include;%C_INCLUDE_PATH%
@set C_INCLUDE_PATH=%JAVA_HOME%\include\win32;%C_INCLUDE_PATH%

cd %top_dir%

java -version

@cmd